# remmina-plugins-gnome - The GTK+ Remote Desktop Client
#
# Copyright (C) 2011 Marc-Andre Moreau
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, 
# Boston, MA 02111-1307, USA.

set(REMMINA_PLUGINS_GNOME_SRCS
	src/remminaplugingkeyring.c
	)

add_library(remmina-plugins-gnome ${REMMINA_PLUGINS_GNOME_SRCS})
set_target_properties(remmina-plugins-gnome PROPERTIES PREFIX "")

find_required_package(GTK3)
if(GTK3_FOUND)
	include_directories(${GTK3_INCLUDE_DIRS})
	target_link_libraries(remmina-plugins-gnome ${GTK3_LIBRARY_DIRS})
endif()

find_required_package(GNOMEKEYRING)
if(GNOMEKEYRING_FOUND)
	include_directories(${GNOMEKEYRING_INCLUDE_DIRS})
	target_link_libraries(remmina-plugins-gnome ${GNOMEKEYRING_LIBRARIES})
endif()

install(TARGETS remmina-plugins-gnome DESTINATION ${REMMINA_PLUGINDIR})

